export default {
  login: {
    tilte: '登录',
    url: 'auth/oauth/token',
    urlLocal: 'static/login/data/login.json',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  },

  logout: {
    tilte: '注销',
    url: 'auth/signout',
    urlLocal: 'static/login/data/logout.json',
    method: 'delete',
  },

  refresh: {
    tilte: '刷新令牌',
    url: 'auth/oauth/token',
    urlLocal: '',
    method: 'post',
  },

  loginSuccess: {
    tilte: '登录成功',
    url: 'system/user/success',
    urlLocal: 'static/login/data/loginSuccess.json',
    method: 'get',
  },

  getUser: {
    tilte: '获取用户信息',
    url: 'auth/user',
    urlLocal: 'static/login/data/getUser.json',
    method: 'get',
  },

  getCodeImage: {
    tilte: '获取验证码',
    url: 'auth/captcha',
    urlLocal: 'static/login/image/code.png',
    method: 'get',
  },

  getMenu: {
    tilte: '获取权限',
    url: 'system/menu/getCurMenu',
    urlLocal: 'static/login/data/getMenu.json',
    method: 'post',
  },

  changePassword: {
    tilte: '修改密码',
    url: 'system/user/password',
    urlLocal: '',
    method: 'post',
  },
}
